In this step you fine-tune the bloom effect by reapplying it three times. To make the effect spread to a wider area and look more realistic, you adjust the settings of the blur and the intensity of the bloom in each pass.
To fine-tune the bloom effect:
Composition Target Render Pass | Resolution Divisor |
---|---|
Horizontal Bloom 2 | 4 |
Vertical Bloom 2 | 4 |
Horizontal Bloom 3 | 8 |
Vertical Bloom 3 | 8 |
Horizontal Bloom 4 | 16 |
Vertical Bloom 4 | 16 |
Blit Render Pass | Texture0 | Material | Blur Direction X | Blur Direction Y | Blur Radius | Intensity |
---|---|---|---|---|---|---|
Horizontal Bloom 2 > Blit Horizontal Bloom | Vertical Bloom 1 | GaussianBloom09Material | 1 | 0 | 3,33 | 1,5 |
Vertical Bloom 2 > Blit Vertical Bloom | Horizontal Bloom 2 | GaussianBloom09Material | 0 | 0,5 | 3,33 | 1,5 |
Horizontal Bloom 3 > Blit Horizontal Bloom | Vertical Bloom 2 | GaussianBloom09Material | 1 | 0 | 5 | 1,33 |
Vertical Bloom 3 > Blit Vertical Bloom | Horizontal Bloom 3 | GaussianBloom09Material | 0 | 0,5 | 5 | 1,33 |
Horizontal Bloom 4 > Blit Horizontal Bloom | Vertical Bloom 3 | GaussianBloom09Material | 1 | 0 | 10 | 3 |
Vertical Bloom 4 > Blit Vertical Bloom | Horizontal Bloom 4 | GaussianBloom09Material | 0 | 0,5 | 10 | 3 |
In this tutorial you learned how to use render passes and shaders to apply a bloom effect on 3D content.
Now you can:
To learn more about the render passes in Kanzi, see Rendering.